<?php

class GoodsCategoryAction extends CommonAction {
	public function _before_index(){
		$list=M('GoodsCategory')->order('id asc')->select();
		$this->assign('list',$list);
/* 		dump($list);
		dump(list_to_tree($list)); */
	}
	
	public function _before_add(){
		$this->assign('options',getGoodsCategory());
	}
	
	public function _before_edit(){
		$this->assign('options',getGoodsCategory());
	}
}